/*
 *  Bootstrap Color Picker Sliders - v3.0.1
 *
 *  Bootstrap 3 optimized responsive color selector with HSV, HSL, RGB and CIE-Lch (which supports human perceived lightness) selectors and color swatches.
 *  http://www.virtuosoft.eu/code/bootstrap-colorpickersliders/
 *
 *  Made by István Ujj-Mészáros
 *  Under Apache License v2.0 License
 *
 *  Requirements:  *
 *      TinyColor: https://github.com/bgrins/TinyColor/
 *
 *  Using color math algorithms from EasyRGB Web site:/
 *      http://www.easyrgb.com/index.php?X=MATH */
.cp-container {
  width: auto;
  position: relative;
  box-sizing: border-box;
}

.cp-container .cp-transparency,
.cp-container .cp-swatches .cp-swatch {
  background:url() repeat;
}

.cp-container .cp-slider,
.cp-container .cp-preview {
  width: auto;
  height: 26px;
  border: 1px solid #dadada;
  margin: 0 4px;
  margin-bottom: 5pt;
  position: relative;
}

.cp-container .cp-hsvpanel {
  width: auto;
  height: auto;
  border: none;
  margin-right: -6px;
}

.cp-container .cp-hsvpanel .cp-hsvpanel-sv,
.cp-container .cp-hsvpanel .cp-hsvpanel-h,
.cp-container .cp-hsvpanel .cp-hsvpanel-a {
  border: 1px solid #dadada;
  display: inline-block;
  position: relative;
  margin: 0 8px 0 4px;
}

.cp-container .cp-hsvpanel .cp-hsvpanel-sv {
  width: 122px;
  height: 122px;
  cursor: default;
}

.cp-container .cp-hsvpanel .cp-hsvpanel-h,
.cp-container .cp-hsvpanel .cp-hsvpanel-a {
  width: 30px;
  height: 122px;
  cursor: ns-resize;
}

.cp-container.cp-container-sm .cp-hsvpanel .cp-hsvpanel-h,
.cp-container.cp-container-sm .cp-hsvpanel .cp-hsvpanel-a {
  width: 27px;
}

.cp-container .cp-hsvpanel .cp-hsvpanel-h {
  background-image: url();
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%,color-stop(0, #ff0000),color-stop(0.167, #ffff00),color-stop(0.333, #00ff00),color-stop(0.5, #00ffff),color-stop(0.667, #0000ff),color-stop(0.833, #ff00ff),color-stop(1, #ff0000));
  background-image: -webkit-linear-gradient(top,#ff0000 0%,#ffff00 16.7%,#00ff00 33.3%,#00ffff 50%,#0000ff 66.7%,#ff00ff 83.3%,#ff0000 100%);
  background-image: linear-gradient(to bottom,#ff0000 0%,#ffff00 16.7%,#00ff00 33.3%,#00ffff 50%,#0000ff 66.7%,#ff00ff 83.3%,#ff0000 100%);
}

.cp-container .cp-hsvpanel .cp-hsvpanel-a span,
.cp-container .cp-hsvpanel .cp-hsvpanel-sv span {
  display: block;
  width: 100%;
  height: 100%;
}

.cp-container .cp-hsvpanel .cp-hsvpanel-sv span {
  background-image: url(),
    url();
  background-image: -webkit-gradient(linear, 0% 100%, 0% 0%,color-stop(0, rgb(0, 0, 0)),color-stop(1, rgba(0, 0, 0, 0))),
    -webkit-gradient(linear, 0% 0%, 100% 0%,color-stop(0, rgb(255, 255, 255)),color-stop(1, rgba(255, 255, 255, 0)));
  background-image: -webkit-linear-gradient(bottom,rgb(0, 0, 0) 0%,rgba(0, 0, 0, 0) 100%),
    -webkit-linear-gradient(left,rgb(255, 255, 255) 0%,rgba(255, 255, 255, 0) 100%);
  background-image: linear-gradient(to top,rgb(0, 0, 0) 0%,rgba(0, 0, 0, 0) 100%),
    linear-gradient(to right,rgb(255, 255, 255) 0%,rgba(255, 255, 255, 0) 100%);
}

.cp-container .cp-slider {
  cursor: ew-resize;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.cp-container .cp-preview {
  height: 39px;
}

.cp-container .cp-slider span,
.cp-container .cp-preview input {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  font-family: sans-serif;
  line-height: 26px;
  font-size: 14px;
}

.cp-container .cp-preview input {
  line-height: 39px;
  padding: 0;
  outline: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: none;
}

.cp-container .cp-marker {
  position: absolute;
  display: block;
  width: 11px;
  height: 10px;
  margin-left: -5px;
  top: -2px;
  background: url();
}

.cp-container .cp-hsvmarker-vertical {
  position: absolute;
  display: block;
  width: 10px;
  height: 11px;
  margin-top: -5px;
  right: -2px;
  top: 0;
  background: url();
}

.cp-container .cp-marker-point {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  left: 0;
  top: 0;
  background-image: url();
}

.cp-container.cp-unconvertible-cie-color .cp-slider.cp-cielightness .cp-marker,
.cp-container.cp-unconvertible-cie-color .cp-slider.cp-ciechroma .cp-marker,
.cp-container.cp-unconvertible-cie-color .cp-slider.cp-ciehue .cp-marker {
  background: url();
}

.cp-container .cp-swatches ul {
  width: auto;
  margin: -7px -7px 0 0;
  padding: 0;
  list-style-type: none;
}

.cp-container .cp-swatches li {
  float: left;
  margin: 7px 7px 0 0;
}

.cp-swatches button {
  float: left;
  margin: 7px 7px 0 0;
  width: 26px;
  height: 26px;
  display: inline-block;
  font-size: 12px;
  padding: 0;
}

.cp-container .cp-swatch {
  width: 26px;
  height: 26px;
  display: inline-block;
  cursor: pointer;
  border-color: #ccc;
  position: relative;
  overflow: hidden;
  outline: none;
  padding: 0;
}

.cp-container .cp-swatch span {
  display: block;
  width: 100%;
  height: 100%;
}

.cp-container .cp-swatches .cp-swatch.actual {
  border-color: #777;
  -webkit-box-shadow: 0 0 5px rgb(250, 128, 0);
  -moz-box-shadow: 0 0 5px rgb(250, 128, 0);
  box-shadow: 0 0 5px rgb(250, 128, 0);
}

.cp-popover-container .popover {
  max-width: 1000px;
}

.popover-content .cp-container {
  width: 263px;
}

.popover-content .cp-container.cp-container-sm {
  width: 208px;
}

.popover-content .cp-container.cp-container-sm .cp-swatch,
.popover-content .cp-container.cp-container-sm .cp-swatches button {
  width: 23px;
  height: 23px;
}

.popover-content .cp-container.cp-container-lg {
  width: 369px;
}

.popover-content .cp-container.cp-container-lg .cp-swatch,
.popover-content .cp-container.cp-container-lg .cp-swatches button {
  width: 27px;
  height: 27px;
}

.cp-container .cp-pills {
  display: none;
}

.cp-container .cp-pills {
  display: inline-block;
}

.cp-container .cp-pills {
  list-style-type: none;
  margin-bottom: 5px;
  padding: 0;
  font-size: 12px;
}

.cp-container .cp-pills li {
  display: inline-block;
  margin: 3px;
  padding: 3px 0;
}

.cp-container .cp-pills li a {
  padding: 5px;
  color: #000;
  text-decoration: none;
}

.cp-container .cp-pills li a:hover,
.cp-container .cp-pills li a.active {
  background-color: #02afff;
  color: #fff;
}

.cp-container.hsvpanel-active .cp-sliders,
.cp-container.hsvpanel-active .cp-swatches {
  display: none;
}

.cp-container.sliders-active .cp-hsvpanel,
.cp-container.sliders-active .cp-swatches {
  display: none;
}

.cp-container.swatches-active .cp-hsvpanel,
.cp-container.swatches-active .cp-sliders {
  display: none;
}

.cp-popover-container .cp-sliders,
.cp-popover-container .cp-hsvpanel {
  margin-top: 7px;
}

.form-control[readonly].cp-preventtouchkeyboardonshow {
  cursor: text;
}

.popover-content .cp-container.hsvpanel-active {
  width: 220px;
}
